<h3 class="title">{{template:title}}</h3>
<div id="instructions" class="paper">
{{theme:image file='paperclip-icon.png' class="clipp"}}
<?php
//print_r($user_profile)
?>
<img class="avatar" width="90" src="{{users:avatar file = user_profile:avatar }}" style="margin-bottom:10px" />
<div class="" style="margin-top:15px;clear:both">
<h3 class="tit2 canhan">{{helper:lang line='users:info1'}}</h3>
<table class="tbl-info">
	<tbody>
		<tr>
			<td width="120"><label>{{helper:lang line='users:full_name'}}</label></td><td style="text-transform:uppercase">{{user:display_name}}</td>
			<td width="90"><label>{{helper:lang line='users:sex'}}</label></td>
			<td>
				<?php foreach($sex_select as $key=>$value)
					if($key == $user_profile->sex)
						echo $value;
				?>
			</td>
		</tr>
		<tr>
			<td><label>{{helper:lang line='users:birth'}}</label></td><td>{{helper:date format='d-m-Y' timestamp = user_profile:birth}}</td>
			<td><label>{{helper:lang line='users:phone'}}</label></td><td>{{user_profile:phone}}</td>
		</tr>
		<tr>
			<td><label>Email</label></td><td>{{user:email}}</td>
			<td><label>{{helper:lang line='users:space'}}</label></td><td>{{user_profile:space}}</td>
		</tr>
		<tr>
			<td><label>{{helper:lang line='users:id_number'}}</label></td><td>{{user_profile:id_number}}</td>
			<td><label>{{helper:lang line='users:people'}}</label></td><td>{{user_profile:people}}</td>
		</tr>
		<tr>
			<td colspan="4"><label>{{helper:lang line='users:address'}}</label>{{user_profile:address}}</td>
		</tr>
		<tr>
			<td colspan="4"><label>{{helper:lang line='users:address2'}}</label>{{user_profile:address2}}</td>
		</tr>
		<tr>
			<td><label>{{helper:lang line='users:marry'}}</label></td><td>
				<?php foreach($marry_select as $key=>$value)
					if($key == $user_profile->marry)
						echo $value;
				?></td>
			<td></td><td></td>
		</tr>
		
	</tbody>
</table>
<h3 class="tit2 hocvan">{{helper:lang line='users:info2'}}</h3>
<table class="tbl-info">
	<tbody>
		<tr>
			<td width="120"><label>{{helper:lang line='users:position'}}</label></td>
			<td>
				<?php foreach($groups_select as $key=>$value)
					if($key == $user->group_id)
						echo $value;
				?>
			</td>
			<td width="120"><label>{{helper:lang line='users:room'}}</label></td>
			<td>
				<?php foreach($room_select as $key=>$value)
					if($key == $user_profile->room_id)
						echo $value;
				?>
				
			</td>
		</tr>
		<tr>
			<td><label>{{helper:lang line='users:location'}}</label></td>
			<td>{{user_profile:location}}</td>
			<td><label>{{helper:lang line='users:specialize'}}</label></td>
			<td>{{user_profile:specialize}}</td>
		</tr>
		<tr>
			<td><label>{{helper:lang line='users:literacy'}}</label></td>
			<td><?php foreach($literacy_select as $key=>$value)
					if($key == $user_profile->literacy)
						echo $value;
				?></td>
			<td><label>{{helper:lang line='users:certificate'}}</label></td>
			<td>{{user_profile:certificate}}</td>
		</tr>
		<tr>
			<td><label>{{helper:lang line='users:date_start'}}</label></td>
			<td>{{helper:date format='d-m-Y' timestamp = user_profile:date_start}}</td>
			<td><label>{{helper:lang line='users:bank_id'}}</label></td>
			<td>{{user_profile:bank_id}}</td>
		</tr>
		<tr>
			<td><label>{{helper:lang line='users:factor'}}</label></td>
			<td>{{helper:number value = user_profile:factor}}</td>
			<td><label>{{helper:lang line='users:salary'}}</label></td>
			<td>{{helper:number value = user_profile:salary}}</td>
		</tr>
		<tr>
			<td><label>{{helper:lang line='users:allows_1'}}</label></td>
			<td>{{user_profile:allows_1}}</td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td><label>{{helper:lang line='users:limit_hd'}}</label></td>
			<td>{{user_profile:limit_hd}}</td>
			<td></td>
			<td></td>
		</tr>
	</tbody>		
</table>	
</div>
</div>